


<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
      #customerT tbody tr:nth-child(odd){background:#f7f3f7 }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
        <h2 class="title_color text-center">网点情况总览</h2>
    </div>
    <!-- 标题 -->
    <div class="padding-10">
      <a href="javascript:;" class="btn-info btn" onclick="dc()">导出Excel</a>
    </div>
    <div>
    <form action=""  class="form-inline">
      <table class="tab-content table-bordered text-center table-hover table bud_hei" border="1" style="margin-bottom:1px" id="customerT">
        <tr class="info">
          <th class="text-center">省份</th>
          <th class="text-center">导购网点数</th>
          <th class="text-center">非导购网点数</th>
          <th class="text-center">网点总数</th>
        </tr>
        <tbody style="border:0">
          {volist name="sarr" id="s"}
             <tr>
               <td>{$s.sheng}</td>
               <td><a onclick="cx('{$s.fenqu}','{$s.sheng}',2)">{$s.dg}</a></td>
               <td><a onclick="cx('{$s.fenqu}','{$s.sheng}',1)">{$s.fdg}</a></td>
               <td><a onclick="cx('{$s.fenqu}','{$s.sheng}',0)">{$s.zong}</a></td>
              </tr>
             <tr>
          {/volist}
        
        </tbody>
        <tfoot>
          <tr class="trTotal">
            <td class="text-right">总计：</td>
            <td>4</td>
           <td>152</td>
           <td>156</td>
          </tr>
        </tfoot>
      </table>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
      <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
      <script src="__STATIC__/layout/js/contabs_sub.js"></script>
    <script>
    function cx(fenqu,sheng,dg){
      layer.open({
                    type: 2,
                    title: '网点情况明细',
                     area: ['90%', '90%'],
                    fixed: false, //不固定
                    maxmin: true,
                    content: "{:url('netqkmx')}?fenqu="+fenqu+"&sheng="+sheng+"&guide="+dg+"&shi= &jxssn= &jxstitle= &netsn= &nettitle= &systitle= "
                });
    }
    function dc(){
      window.open("{:url('netqkdc')}")
    }
       $(document).ready(function(){
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);

          var totalRow = 0; 
          var totalRow1 = 0; 
          var totalRow2 = 0; 
       $('#customerT tbody tr').each(function() {  
            $(this).find('td:eq(1)').each(function(){  
                totalRow += parseFloat($(this).text());   
            });
             $(this).find('td:eq(2)').each(function(){  
                totalRow1 += parseFloat($(this).text());   
            }); 
               $(this).find('td:eq(3)').each(function(){  
                totalRow2 += parseFloat($(this).text());   
            }); 
         });  
      
        $("#customerT tfoot tr td").eq(1).html(totalRow)
         $("#customerT tfoot tr td").eq(2).html(totalRow1)
          $("#customerT tfoot tr td").eq(3).html(totalRow2)
             });

    </script>
</body>

</html>
